﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Reflection;
using System.Web.Mvc;

namespace Mindfor.Web
{
	/// <summary>
	/// Provides extension functions for different types.
	/// </summary>
	public static class HtmlExtensions
	{
		/// <summary>
		/// Returns MvcHtmlString for string value so it is not html encoded.
		/// </summary>
		/// <param name="str">String that do not require html encoding.</param>
		public static MvcHtmlString AsHtml(this string str)
		{
			return str == null ? null : MvcHtmlString.Create(str);
		}
	}
}
